
public class Hui {

	public static boolean isHui(String m){
		char[] ca = m.toCharArray();
		for(int i=0;i<ca.length/2;i++){
			if(ca[i]!=ca[ca.length-i-1]){
			return false;	
			}
		}
	return true;
			}

	public static void main(String[] args){
		System.out.println(isHui("abcd"));
	}
}
